home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presen…tion Library 4 (Reseller) / Apple Ref. & Pres. Lib.v4.0.iso / 6-Apple⁄DEC Alliance / Solutions & Networking Guide / Macintosh Networking Guide / Macintosh Networking Guide / card_6984.txt < prev    next >
Text File  |  1990-04-17  |  16KB  |  634 lines

  1. -- card: 6984 from stack: in
  2. -- bmap block id: 15539
  3. -- flags: 0000
  4. -- background id: 18894
  5. -- name: Network RoomMicro
  6. ----- HyperTalk script -----
  7. on openCard
  8.   global env,service,holder,prodname4,prodname5,network1,sol,protocol
  9.   global protocol1
  10.   put env into cd fld "CPU"
  11.   set hilite of bkgnd btn "Application Level" to false
  12.   set hilite of bkgnd btn "Network Level" to true
  13.   set hilite of bkgnd btn "Hardware Level" to false
  14.   set hilite of bkgnd btn id 52 to false
  15.   set hilite of bkgnd btn id 43 to false
  16.   put "Network Level" into fld "Floorname"
  17.   put env && "Network Services" & return & "click on the Macintosh" into fld "Tell"
  18.   if env is "Mac" then
  19.     put "Macintosh to Macintosh" && sol && "Room" into fld "solName"
  20.   else
  21.     put "Macintosh to" && env && sol && "Room" into fld "solName"
  22.   end if
  23.   put card field (env && "Network¬†Services") of card "Mac Grid" into holder
  24.   if holder is empty then
  25.     put return & "No Solutions installed" & return & "in this version" into fld "Tell"
  26.     exit openCard
  27.   end if
  28.   if protocol <> empty then
  29.     show cd fld "Protocol"
  30.   end if
  31.   if protocol1 <> empty then
  32.     show cd fld "Protocol2"
  33.   end if
  34.   if service is empty then
  35.     if env is "Digital" then put "File Service" into service
  36.     if env is "IBM" then put "Terminal Emulation" into service
  37.     if env is "Mac" then put "File Service" into service
  38.     if env is "PC" then put "File Service" into service
  39.     if env is "Tandem" then put "Terminal Emulation" into service
  40.     if env is "UNIX" then put "File service" into service
  41.     if env is "Wang" then put "Terminal Emulation" into service
  42.     if network1 <> empty then
  43.       if network1 contains "File Transfer" then put "File Transfer" into service
  44.       if network1 contains "CL/1" then put "File Service" into service
  45.       if network1 contains "Client" then put "File Service" into service
  46.       if network1 contains "Translation" then put "Translation" into service
  47.       if network1 contains "Not" then put "Terminal Emulation" into service
  48.     end if
  49.   end if
  50.   put service into cd fld "Service"
  51.   --‚àÜ Fill left then right side product choices
  52.   put "Macintosh side:" & return into cd fld "Side1"
  53.   repeat with i = 1 to the number of lines of holder
  54.     if item 3 of line i of holder contains service then
  55.       if item 1 of line i of holder <> empty then
  56.         put item 1 of line i of holder & return after cd fld "Side1"
  57.       end if
  58.     end if
  59.   end repeat
  60.   if line 2 of cd fld "Side1" is empty then
  61.     put "No products of this type are installed in this version" after cd fld "Side1"
  62.   end if
  63.   put env && "side:" & return into cd fld "Side2"
  64.   repeat with i = 1 to the number of lines of holder
  65.     if item 3 of line i of holder contains service then
  66.       if item 2 of line i of holder <> empty then
  67.         put item 2 of line i of holder & return after cd fld "Side2"
  68.       end if
  69.     end if
  70.   end repeat
  71.   if line 2 of cd fld "Side2" is empty then
  72.     put "No products of this type are installed in this version" after cd fld "Side2"
  73.   end if
  74.   if prodName4 <> empty
  75.   then
  76.   put "click for product info" into fld "click"
  77.   put prodname4 into fld "Prodname"
  78.   set hilite of bkgnd btn id 43 to true
  79. end if
  80. if prodName5 <> empty
  81. then
  82. put prodname5 into fld "Prodname2"
  83. set hilite of bkgnd btn id 52 to true
  84. put "click for product info" into fld "click2"
  85. end if
  86. pass openCard
  87. end openCard
  88.  
  89. on closeCard
  90.   hide cd fld "Side1"
  91.   put empty into cd fld "Side1"
  92.   hide cd fld "Side2"
  93.   put empty into cd fld "Side2"
  94.   put empty into fld "Prodname"
  95.   put empty into fld "Prodname2"
  96.   put empty into cd fld "CPU"
  97.   put "" into fld "click"
  98.   put "" into fld "click2"
  99.   put "" into cd fld "Protocol"
  100.   put "" into cd fld "Protocol2"
  101.   set hilite of bkgnd btn id 43 to false
  102.   set hilite of bkgnd btn id 52 to false
  103.   pass closeCard
  104. end closeCard
  105.  
  106. on clean
  107.   put empty into cd fld "Protocol"
  108.   put empty into cd fld "Protocol2"
  109.   put empty into cd fld "Service"
  110.   put empty into fld "Network"
  111.   pass clean
  112. end clean
  113.  
  114. on clean1
  115.   global prodname4,prodname5,protocol,protcol2
  116.   put empty into cd fld "Protocol"
  117.   put empty into cd fld "Protocol2"
  118.   put empty into cd fld "Service"
  119.   put empty into fld "Prodname"
  120.   put empty into fld "Prodname2"
  121.   set hilite of bkgnd btn id 52 to false
  122.   set hilite of bkgnd btn id 43 to false
  123.   put empty into prodname4
  124.   put empty into prodname5
  125.   put empty into protocol
  126.   put empty into protocol2
  127. end clean1
  128.  
  129.  
  130. -- part 1 (button)
  131. -- low flags: 00
  132. -- high flags: 0000
  133. -- rect: left=0 top=0 right=297 bottom=46
  134. -- title width / last selected line: 0
  135. -- icon id / first selected line: 0 / 0
  136. -- text alignment: 1
  137. -- font id: 0
  138. -- text size: 12
  139. -- style flags: 0
  140. -- line height: 16
  141. -- part name: 
  142. ----- HyperTalk script -----
  143. on mouseUp
  144.   global hall,sol,currentfloor
  145.   put "2  Network Services" into currentfloor
  146.   set lockscreen to true
  147.   go to cd hall
  148.   unlock screen with zoom open slowly
  149. end mouseUp
  150.  
  151. On mouseDown
  152.   global ButtonSND
  153.   play ButtonSND
  154. End mouseDown
  155.  
  156. on mouseEnter
  157.   changeCurs 6069
  158.   put "Back to Hall" & return & "click to go back to hall" into fld "Tell"
  159. end mouseEnter
  160.  
  161. on mouseLeave
  162.   changeCurs 69
  163.   put empty into fld "Tell"
  164. end mouseLeave
  165.  
  166.  
  167. -- part 7 (field)
  168. -- low flags: 01
  169. -- high flags: 0000
  170. -- rect: left=400 top=148 right=171 bottom=439
  171. -- title width / last selected line: 0
  172. -- icon id / first selected line: 0 / 0
  173. -- text alignment: 0
  174. -- font id: 3
  175. -- text size: 9
  176. -- style flags: 10240
  177. -- line height: 12
  178. -- part name: CPU
  179.  
  180.  
  181. -- part 67 (field)
  182. -- low flags: 01
  183. -- high flags: 0000
  184. -- rect: left=55 top=85 right=119 bottom=240
  185. -- title width / last selected line: 0
  186. -- icon id / first selected line: 0 / 0
  187. -- text alignment: 65535
  188. -- font id: 242
  189. -- text size: 9
  190. -- style flags: 0
  191. -- line height: 12
  192. -- part name: Protocol
  193. ----- HyperTalk script -----
  194. on mouseEnter
  195.   global env
  196.   put "Product Protocol" & return & "go to Hardware for info" into fld "Tell"
  197. end mouseEnter
  198.  
  199. on mouseLeave
  200.   changeCurs 6069
  201.   put empty into fld "Tell"
  202. end mouseleave
  203.  
  204. on mouseUp
  205.   global Help
  206.   if Help then exit mouseUp
  207.   send mouseUp to bkgnd btn "Hardware"
  208. end mouseUp
  209.  
  210.  
  211. -- part 71 (field)
  212. -- low flags: 01
  213. -- high flags: 0000
  214. -- rect: left=244 top=85 right=123 bottom=438
  215. -- title width / last selected line: 0
  216. -- icon id / first selected line: 0 / 0
  217. -- text alignment: 0
  218. -- font id: 242
  219. -- text size: 9
  220. -- style flags: 0
  221. -- line height: 12
  222. -- part name: Protocol2
  223. ----- HyperTalk script -----
  224. on mouseEnter
  225.   global env
  226.   put "Product Protocol" & return & "go to Hardware for info" into fld "Tell"
  227. end mouseEnter
  228.  
  229. on mouseLeave
  230.   changeCurs 69
  231.   put empty into fld "Tell"
  232. end mouseleave
  233.  
  234. on mouseUp
  235.   send mouseUp to bkgnd btn "Hardware Level"
  236. end mouseUp
  237.  
  238.  
  239. -- part 79 (button)
  240. -- low flags: 00
  241. -- high flags: 0000
  242. -- rect: left=36 top=128 right=201 bottom=150
  243. -- title width / last selected line: 0
  244. -- icon id / first selected line: 0 / 0
  245. -- text alignment: 1
  246. -- font id: 0
  247. -- text size: 12
  248. -- style flags: 0
  249. -- line height: 16
  250. -- part name: Macintosh
  251. ----- HyperTalk script -----
  252. on mouseUp
  253.   set the visible of cd fld "Side1" to not the visible of cd fld "Side1"
  254. end mouseUp
  255.  
  256. on mouseEnter
  257.   changeCurs 6069
  258.   put "Macintosh Products" & return & "click to configure network" into fld "Tell"
  259. end mouseEnter
  260.  
  261. on mouseLeave
  262.   changeCurs 69
  263.   put empty into fld "Tell"
  264. end mouseleave
  265.  
  266.  
  267. -- part 80 (button)
  268. -- low flags: 00
  269. -- high flags: A000
  270. -- rect: left=78 top=198 right=210 bottom=129
  271. -- title width / last selected line: 0
  272. -- icon id / first selected line: 0 / 0
  273. -- text alignment: 0
  274. -- font id: 242
  275. -- text size: 9
  276. -- style flags: 0
  277. -- line height: 12
  278. -- part name: services
  279. ----- HyperTalk script -----
  280. on mouseUp
  281.   send mouseUp to btn id 77
  282. end mouseUp
  283.  
  284. on mouseEnter
  285.   ChangeCurs 6069
  286.   put "Chooser Button" & return & "click to change service" into fld "Tell"
  287. end mouseEnter
  288.  
  289. on mouseLeave
  290.   changeCurs 69
  291.   put empty into fld "Tell"
  292. end mouseleave
  293.  
  294. On mouseDown
  295.   Global ClickSND
  296.   play ClickSND
  297. End mouseDown
  298.  
  299.  
  300. -- part 82 (button)
  301. -- low flags: 00
  302. -- high flags: 0000
  303. -- rect: left=376 top=130 right=209 bottom=482
  304. -- title width / last selected line: 0
  305. -- icon id / first selected line: 0 / 0
  306. -- text alignment: 1
  307. -- font id: 0
  308. -- text size: 12
  309. -- style flags: 0
  310. -- line height: 16
  311. -- part name: Host
  312. ----- HyperTalk script -----
  313. on mouseUp
  314.   set the visible of cd fld "Side2" to not the visible of cd fld "Side2"
  315. end mouseUp
  316.  
  317. on mouseEnter
  318.   global env
  319.   changeCurs 6069
  320.   put "Show" && env && "Products" & return & "click to configure network" into fld "Tell"
  321. end mouseEnter
  322.  
  323. on mouseLeave
  324.   changeCurs 69
  325.   put empty into fld "Tell"
  326. end mouseleave
  327.  
  328.  
  329. -- part 83 (button)
  330. -- low flags: 00
  331. -- high flags: A000
  332. -- rect: left=394 top=186 right=198 bottom=445
  333. -- title width / last selected line: 0
  334. -- icon id / first selected line: 0 / 0
  335. -- text alignment: 0
  336. -- font id: 242
  337. -- text size: 9
  338. -- style flags: 0
  339. -- line height: 12
  340. -- part name: services
  341. ----- HyperTalk script -----
  342. on mouseUp
  343.   send mouseUp to btn id 78
  344. end mouseUp
  345.  
  346. on mouseEnter
  347.   ChangeCurs 6069
  348.   put "Chooser Button" & return & "click to change service" into fld "Tell"
  349. end mouseEnter
  350.  
  351. on mouseLeave
  352.   ChangeCurs 69
  353.   put empty into fld "Tell"
  354. end mouseleave
  355.  
  356. On mouseDown
  357.   Global ClickSND
  358.   play ClickSND
  359. End mouseDown
  360.  
  361.  
  362. -- part 85 (field)
  363. -- low flags: 01
  364. -- high flags: 0001
  365. -- rect: left=242 top=67 right=84 bottom=427
  366. -- title width / last selected line: 0
  367. -- icon id / first selected line: 0 / 0
  368. -- text alignment: 0
  369. -- font id: 156
  370. -- text size: 14
  371. -- style flags: 16640
  372. -- line height: 18
  373. -- part name: Service
  374. ----- HyperTalk script -----
  375. on mouseEnter
  376.   put "Current" & return & "Network Service" into fld "Tell"
  377. end mouseEnter
  378.  
  379. on mouseLeave
  380.   put empty into fld "Tell"
  381. end mouseleave
  382.  
  383.  
  384.  
  385. -- part 86 (field)
  386. -- low flags: 01
  387. -- high flags: 0001
  388. -- rect: left=100 top=67 right=84 bottom=242
  389. -- title width / last selected line: 0
  390. -- icon id / first selected line: 0 / 0
  391. -- text alignment: 0
  392. -- font id: 156
  393. -- text size: 14
  394. -- style flags: 16640
  395. -- line height: 18
  396. -- part name: Title
  397.  
  398.  
  399. -- part 87 (button)
  400. -- low flags: 00
  401. -- high flags: A003
  402. -- rect: left=180 top=217 right=239 bottom=339
  403. -- title width / last selected line: 0
  404. -- icon id / first selected line: 0 / 0
  405. -- text alignment: 1
  406. -- font id: 0
  407. -- text size: 12
  408. -- style flags: 8192
  409. -- line height: 16
  410. -- part name: Click for Services Chooser
  411. ----- HyperTalk script -----
  412.  
  413. on mouseEnter
  414.   ChangeCurs 6069
  415.   put "Macintosh Services Chooser" & return & "click to change service" into fld "Tell"
  416. end mouseEnter
  417.  
  418. on mouseLeave
  419.   changeCurs 69
  420.   put empty into fld "Tell"
  421. end mouseleave
  422.  
  423. On mouseDown
  424.   Global ClickSND
  425.   play ClickSND
  426. End mouseDown
  427.  
  428. on mouseUp
  429.   Global prodname4,prodname5,protocol
  430.   get the loc of me
  431.   put it into MLoc
  432.   Put "Zoomer " & MLoc & "," & MLoc & "," & "254,151,278,166" into Zoomy
  433.   do Zoomy
  434.   Zoomer 254,151,278,166,8,4,507,336
  435.   unlock screen with dissolve
  436.   set cursor to busy
  437.   put "" into fld "Prodname"
  438.   put "" into fld "Prodname2"
  439.   hide cd fld "Side1"
  440.   hide cd fld "Side2"
  441.   set hilite of bkgnd btn id 43 to false
  442.   set hilite of bkgnd btn id 52 to false
  443.   put empty into cd fld "Side1"
  444.   put empty into cd fld "Side2"
  445.   put empty into cd fld "Protocol"
  446.   put empty into cd fld "Protocol2"
  447.   put "" into fld "click"
  448.   put "" into fld "click2"
  449.   put empty into prodname4
  450.   put empty into prodname5
  451.   put empty into protocol
  452.   set lockscreen to true
  453.   push card
  454.   go to cd "White"
  455.   go to cd "Chooser"
  456.   set cursor to hand
  457.   unlock screen with dissolve
  458. end mouseUp
  459.  
  460.  
  461.  
  462.  
  463. -- part 64 (field)
  464. -- low flags: 81
  465. -- high flags: 0007
  466. -- rect: left=25 top=85 right=184 bottom=241
  467. -- title width / last selected line: 0
  468. -- icon id / first selected line: 0 / 0
  469. -- text alignment: 65535
  470. -- font id: 3
  471. -- text size: 9
  472. -- style flags: 0
  473. -- line height: 12
  474. -- part name: Side1
  475. ----- HyperTalk script -----
  476. on mouseUp
  477.   global holder,prodname4,protocol
  478.   put selectionAndHiliter() into cardline
  479.   put line cardline of me into prodname4
  480.   if prodname4 contains "side" then
  481.     hide cd btn "side1Hiliter"
  482.     hide me
  483.     put empty into prodname4
  484.     exit mouseup
  485.   end if
  486.   if prodname4 is empty or prodname4 contains "no Products" or prodname4 contains "this version" then
  487.     answer "Empty Choice!" with "Try Again"
  488.     exit mouseup
  489.   end if
  490.   put prodname4 into fld "Prodname"
  491.   set hilite of bkgnd btn id 43 to true
  492.   put "click for product info" into fld "click"
  493.   repeat with i = 1 to the number of lines of holder
  494.     if item 1 of line i of holder is prodname4 then
  495.       put item 6 of line i of holder into dotnames
  496.       put offset("‚Ä¢",dotnames) into num
  497.       if num is empty or num is 0 then
  498.         put "Click below left CPU to see more about" && prodname4 into cd fld "Protocol"
  499.         exit repeat
  500.       else
  501.         put char 1 to (num - 1) of dotnames into protocol
  502.         put prodname4 && "uses " & protocol into cd fld "Protocol"
  503.       end if
  504.     end if
  505.   end repeat
  506.   hide cd btn "side1Hiliter"
  507.   hide me
  508. end mouseUP
  509.  
  510. on mouseEnter
  511.   changeCurs 6069
  512.   put "Products Field" & return & "click to select a product" into fld "Tell"
  513. end mouseEnter
  514.  
  515. on mouseLeave
  516.   changeCurs 69
  517.   put empty into fld "Tell"
  518. end mouseleave
  519.  
  520. On mouseDown
  521.   Global ClickSND
  522.   play ClickSND
  523. End mouseDown
  524.  
  525.  
  526.  
  527. -- part 65 (field)
  528. -- low flags: 81
  529. -- high flags: 0007
  530. -- rect: left=242 top=85 right=184 bottom=457
  531. -- title width / last selected line: 0
  532. -- icon id / first selected line: 0 / 0
  533. -- text alignment: 0
  534. -- font id: 3
  535. -- text size: 9
  536. -- style flags: 0
  537. -- line height: 12
  538. -- part name: Side2
  539. ----- HyperTalk script -----
  540. on mouseUp
  541.   global holder,prodname5,protocol1
  542.   put selectionAndHiliter() into cardline
  543.   put line cardline of me into prodname5
  544.   if prodname5 is empty or prodname5 contains "no products" or prodname5 contains "this version" then
  545.     answer "Empty Choice!" with "Try Again"
  546.     exit mouseup
  547.   end if
  548.   if cd fld "Side2" contains "side:" then
  549.     put empty into prodname5
  550.     hide cd btn "side2Hiliter"
  551.     hide me
  552.     exit mouseup
  553.   end if
  554.   put prodname5 into fld "Prodname2"
  555.   set hilite of bkgnd btn id 52 to true
  556.   put "click for product info" into fld "click2"
  557.   repeat with i = 1 to the number of lines of holder
  558.     if item 2 of line i of holder is prodname5 then
  559.       put item 6 of line i of holder into dotnames
  560.       put offset("‚Ä¢",dotnames) into num
  561.       if num is empty or num is 0 then
  562.         put "Click below right CPU to see more about" && prodname5 into cd fld "Protocol"
  563.         exit repeat
  564.       else
  565.         put char 1 to (num - 1) of dotnames into protocol1
  566.         put prodname5 && "uses " & protocol1 into cd fld "Protocol2"
  567.       end if
  568.     end if
  569.   end repeat
  570.   hide cd btn "side2Hiliter"
  571.   hide me
  572. end mouseUP
  573.  
  574. on mouseEnter
  575.   changeCurs 6069
  576.   put "Products Field" & return & "click to select a product" into fld "Tell"
  577. end mouseEnter
  578.  
  579. on mouseLeave
  580.   changeCurs 69
  581.   put empty into fld "Tell"
  582. end mouseleave
  583.  
  584. On mouseDown
  585.   Global ClickSND
  586.   play ClickSND
  587. End mouseDown
  588.  
  589.  
  590.  
  591.  
  592. -- part 88 (button)
  593. -- low flags: 80
  594. -- high flags: 4000
  595. -- rect: left=243 top=86 right=99 bottom=440
  596. -- title width / last selected line: 0
  597. -- icon id / first selected line: 0 / 0
  598. -- text alignment: 1
  599. -- font id: 0
  600. -- text size: 12
  601. -- style flags: 0
  602. -- line height: 16
  603. -- part name: side2Hiliter
  604.  
  605.  
  606. -- part 89 (button)
  607. -- low flags: 80
  608. -- high flags: 4000
  609. -- rect: left=26 top=98 right=111 bottom=224
  610. -- title width / last selected line: 0
  611. -- icon id / first selected line: 0 / 0
  612. -- text alignment: 1
  613. -- font id: 0
  614. -- text size: 12
  615. -- style flags: 0
  616. -- line height: 16
  617. -- part name: side1Hiliter
  618.  
  619.  
  620. -- part contents for background part 41
  621. ----- text -----
  622. Macintosh to PC Network¬†Services Room
  623.  
  624. -- part contents for background part 68
  625. ----- text -----
  626. Network Level
  627.  
  628. -- part contents for card part 85
  629. ----- text -----
  630. File Service
  631.  
  632. -- part contents for card part 86
  633. ----- text -----
  634. Current Service: